package com.huang.design.creatation.Factory.interfa;

public class Test {
    public static void main(String[] args) {
        createAnimalFactory factory=new Animal2Factory();
        Animal pig = factory.getAnimal();
        pig.play();
    }
}
